/<template>
  <div class="index">
    <div class="top">
      <h1>馆藏资源</h1>
      <span>查看更多></span>
    </div>
    <div class="buttom">
      <div class="buttom_content" v-for="(item, index) in arr" :key="index">
        <img :src="item.img" alt="" />
        <span>{{ item.name }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [
        {
          img: require("../../assets/img/si.png"),
          name: "海是倒过来",
        },
        {
          img: require("../../assets/img/guancnag.png"),
          name: "波斯少年",
        },
        {
          img: require("../../assets/img/si.png"),
          name: "旋转的空间",
        },
        {
          img: require("../../assets/img/guancnag.png"),
          name: "海是倒过来",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.index {
  width: 90%;
  height: 220px;
  background: #fff;
  margin: 20px 20px 0 20px;
  border-radius: 18px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.04);
}
.top {
  width: 100%;
  height: 80px;
  //   background: goldenrod;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top h1 {
  font-size: 24px;
  padding: 0 15px;
}
.top span {
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #666666;
  padding: 0 10px;
}
.buttom {
  height: 120px;
  width: 100%;
  //   background: red;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-grow: 1;
  flex-shrink: 1;
}
.buttom_content img {
  width: 75px;
  height: 75px;
  border-radius: 14px;
}
.buttom_content span {
  height: 50px;
  width: 80px;
  display: flex;
  flex-wrap: wrap;
}
</style>
